home *** CD-ROM | disk | FTP | other *** search
/ 600 Games / 600games.iso / Corrida / PMGRacing.swf / scripts / DefineButton2_236 / BUTTONCONDACTION on(press).as
Encoding:
Text File  |  2001-07-07  |  403 b   |  16 lines

  1. on(press){
  2.    clipx = getProperty("/clip", _X);
  3.    clipy = getProperty("/clip", _Y);
  4.    ballx = getProperty("/ball", _X);
  5.    bally = getProperty("/ball", _Y);
  6.    motionx = (clipx - ballx) / a;
  7.    motiony = (clipy - bally) / a;
  8.    n = "1";
  9.    while(n < "10")
  10.    {
  11.       setProperty("../ball", _X, clipx - motionx);
  12.       setProperty("../ball", _Y, clipy - motiony);
  13.       n += "1";
  14.    }
  15. }
  16.